package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SpokenCourseTime;
import com.ruoyi.system.mapper.SpokenCourseTimeMapper;
import com.ruoyi.system.service.ISpokenCourseTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpokenCourseTimeServiceImpl implements ISpokenCourseTimeService {

    @Autowired
    SpokenCourseTimeMapper courseTimeMapper;

    @Override
    public List<SpokenCourseTime> selectByCourseId(Long courseId) {
        return courseTimeMapper.selectByCourseId(courseId);
    }

    @Override
    public int insert(List<SpokenCourseTime> courseTimes) {
        return courseTimeMapper.insert(courseTimes);
    }

    @Override
    public int update(SpokenCourseTime courseTime) {
        return courseTimeMapper.update(courseTime);
    }

    @Override
    public int delete(Long courseId) {
        return courseTimeMapper.delete(courseId);
    }

    @Override
    public int deleteByTimeId(List<Long> timeIds) {
        return courseTimeMapper.deleteByTimeId(timeIds);
    }
}
